package com.smartao.base.selecttype;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.smartao.core.dao.BaseDao;
import com.smartao.core.service.BaseEntityService;

@Service
public class SelecttypeServiceImpl extends BaseEntityService<Selecttype, Long> implements SelecttypeService{

	@Autowired
	private SelecttypeDao selecttypeDao;
	
	@Override
	protected BaseDao<Selecttype, Long> getDao() {
		return selecttypeDao;
	}

	@Override
	public Selecttype findByCode(String code) {
		return selecttypeDao.findByCode(code);
	}

	@Override
	public List<Selecttype> findByModule(Long moduleId) {
		return selecttypeDao.findByModule(moduleId);
	}

}
